#include "Config.h"
#include "tinyxml/tinyxml.h"

CConfig::CConfig()
{
}


CConfig::~CConfig()
{
}

bool CConfig::LoadSetting()
{
	std::string strPath = GetAppPath();
	strPath += "CollectKLineData.cfg";

	TiXmlDocument	doc;
	if (!doc.LoadFile(strPath.c_str()))
		return false;

	TiXmlElement*	pRoot = doc.RootElement();
	if (NULL == pRoot)
		return false;


	if (!CollectKLineDataCfgParser::XmlElement2ColKDataConfig(pRoot, _kLinecfg))
		return false;

	
	return true;
}

